package com.gu.mapper;

import com.gu.entity.VehicleRefuelingInfo;
import com.gu.entity.excelExportEntity.VehicleRefuelingInfoExp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VehicleRefuelingInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(VehicleRefuelingInfo record);

    int insertSelective(VehicleRefuelingInfo record);

    VehicleRefuelingInfo selectByPrimaryKey(Integer id);

    VehicleRefuelingInfo selectByInputId(String inputId);

    List<String> selectAllInputId();

    int updateByPrimaryKeySelective(VehicleRefuelingInfo record);

    int updateByPrimaryKey(VehicleRefuelingInfo record);

    List<VehicleRefuelingInfo> getAllVehicleRefuelingInfo(@Param("vehicleSelectorParam") String vehicleSelectorParam
            ,@Param("submitTimeStart")String submitTimeStart
            ,@Param("submitTimeEnd")String submitTimeEnd
            ,@Param("createTimeStart")String createTimeStart
            ,@Param("createTimeEnd")String createTimeEnd
            ,@Param("matchRule")Integer matchRule
    );

    List<VehicleRefuelingInfoExp> selectSummaryDataByParam(@Param("vehicleSelectorParam") String vehicleSelectorParam
            , @Param("submitTimeStart")String submitTimeStart
            , @Param("submitTimeEnd")String submitTimeEnd
            , @Param("createTimeStart")String createTimeStart
            , @Param("createTimeEnd")String createTimeEnd
            , @Param("vehicleTypeSettingName")String vehicleTypeSettingName
            , @Param("vehicleType")String vehicleType
            , @Param("matchRule")Integer matchRule
    );

    int deleteByDataIds(@Param("dataIds") String[] dataIds);
}